#include "tetris_type.h"
#include "tetris.h"
#include "tetris_adapter.h"
#include "tetris_type.h"

Shape current_shape = {
    .shape = 0,
    .shape_pattern = 0,
    .x = 0,
    .y = 0};

void tetris_init(void)
{
    tetris_adapter_init();
}

void tetris_frame_draw(void)
{
    draw_frame_clean();
    draw_bg();
    draw_shape(current_shape);
}

void tetris_launch(void)
{
    tetris_init();
    while (1)
    {
        tetris_frame_draw();
        tetris_frame_delay(16);
    }
}
